body {
      font-family: 'Roboto', sans-serif;
      background-color: #0d47a1;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }

    .login-box {
      background: white;
      padding: 40px 30px;
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
      width: 100%;
      max-width: 400px;
      animation: fadeIn 1s ease;
    }

    .login-box h2 {
      text-align: center;
      margin-bottom: 25px;
      color: #0d47a1;
      font-size: 24px;
      font-weight: bold;
    }

    .input-group {
      position: relative;
      margin-bottom: 20px;
    }

    .input-group input {
      width: 100%;
      padding: 12px 40px 12px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      outline: none;
      font-size: 15px;
    }

    .input-group i {
      position: absolute;
      top: 12px;
      right: 12px;
      color: #888;
    }

    .btn-login {
      width: 100%;
      background-color: #0d47a1;
      color: white;
      padding: 12px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.3s;
    }

    .btn-login:hover {
      background-color: #08397f;
    }

    .error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 15px;
      text-align: center;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Estilos adicionales para evitar desbordamiento */
    .login-box input[type="text"],
    .login-box input[type="password"] {
      box-sizing: border-box;
      max-width: 100%;
      overflow: hidden;
      word-break: break-word;
    }

    .login-box input[type="text"]:focus,
    .login-box input[type="password"]:focus {
      border-color: #0d47a1;
      box-shadow: 0 0 5px rgba(13, 71, 161, 0.5);
    }